package com.linln.admin.good.validator;

import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 小懒虫
 * @date 2021/04/03
 */
@Data
public class CategoryValid implements Serializable {
    @NotEmpty(message = "标题不能为空")
    private String title;
    @NotNull(message = "父级编号不能为空")
    private Long pid;
}